package com.example.doma.mapper;

import com.example.doma.pojo.fam_mem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface fam_memMapper {
    @Select("select * from fam_mem")
    List<fam_mem> getfam_mems();
    fam_mem getfam_memByidAndname(@Param("id") int id,@Param("name") String name);
    List<fam_mem> getfam_memsByid(int id);
     int update(fam_mem fam);
     int add(fam_mem fam);
     int deleteByidAndname(@Param("id") int id,@Param("name") String name);
}
